{% extends "admin/base.html" %}
{% load i18n %}
{% load static simpletags %}

{% block title %}{% translate '识别信息' %}{% endblock %}

{% block content %}

<div class="container">
    <div class="el-row">
        <div class="el-col el-col-12">  <!--左侧-->
            <div style="margin-top: 20px" class="el-col el-col-12">
                {% if process_error %}
                    <span style="color: red;">生成二维码失败,请检查参数</span>
                {% endif %}
                <h2>基本信息</h2>
                <form action="/madmin/samap/qrcode/" method="post">
                    {% csrf_token %}
                    {% for field in form %}
                       <div class="el-col el-col-12">{{ field.label }}</div>
                       <div class="el-col el-col-12">{{ field }}</div>
                    {% endfor %}
                    <br/>
                    <input type="submit" value="获取二维码">
                </form>
            </div>
            <div class="el-col el-col-24">
                    <img {% if qrcode_src %} style="width: 540px; height: 540px;" {% endif %} src="{{qrcode_src}}" />
            </div>
        </div>   <!--左侧-->
    </div>
</div>

{% endblock %}